package com.hnevc.properties;


import java.io.IOException;
import java.io.StringReader;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Properties;


public class Test {
	public static void main(String[] args) throws IOException  {
		String data ="Language =  chinese \r\n Backgound-color=red";
		Properties p = new Properties();
		p.load(new StringReader(data));
		Enumeration en = p.keys();
		while(en.hasMoreElements()){
			Object key = en.nextElement();
			Object value = p.getProperty((String) key);
			System.out.println(key+"=="+value);
		}
		p.list(System.out);
	}
}

